package vcp.gui.forms;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;

import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.border.TitledBorder;
/**
 * Check In Regular Form
 */
public class CheckInRegularForm extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private JTextField txtCheckIn;
	private JButton btnCheckIn;
	private JTextField orderNo_textField;

	public JTextField getTxtCheckIn() {
		return txtCheckIn;
	}

	public void setTxtCheckIn(JTextField txtCheckIn) {
		this.txtCheckIn = txtCheckIn;
	}

	public JButton getBtnCheckIn() {
		return btnCheckIn;
	}

	public void setBtnCheckIn(JButton btnCheckIn) {
		this.btnCheckIn = btnCheckIn;
	}

	/**
	 * Create the panel.
	 */
	public CheckInRegularForm() {
		setBorder(new TitledBorder(null, "Regular check in", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		
		JLabel lblCustomerId = new JLabel("Customer Id");
		
		txtCheckIn = new JTextField();
		txtCheckIn.setColumns(10);
		
		btnCheckIn = new JButton("Check In");
		
		orderNo_textField = new JTextField();
		orderNo_textField.setColumns(10);
		
		JLabel lblCarNo = new JLabel("Order Number");
		GroupLayout groupLayout = new GroupLayout(this);
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(12)
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(87)
							.addComponent(orderNo_textField, GroupLayout.DEFAULT_SIZE, 339, Short.MAX_VALUE)
							.addContainerGap())
						.addComponent(lblCarNo, GroupLayout.PREFERRED_SIZE, 104, GroupLayout.PREFERRED_SIZE)))
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(12)
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(87)
							.addComponent(txtCheckIn, GroupLayout.DEFAULT_SIZE, 339, Short.MAX_VALUE)
							.addContainerGap())
						.addComponent(lblCustomerId, GroupLayout.PREFERRED_SIZE, 104, GroupLayout.PREFERRED_SIZE)))
				.addGroup(Alignment.TRAILING, groupLayout.createSequentialGroup()
					.addContainerGap(341, Short.MAX_VALUE)
					.addComponent(btnCheckIn, GroupLayout.PREFERRED_SIZE, 97, GroupLayout.PREFERRED_SIZE)
					.addContainerGap())
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(13)
							.addComponent(lblCustomerId)
							.addGap(18)
							.addComponent(lblCarNo))
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(10)
							.addComponent(txtCheckIn, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
							.addGap(12)
							.addComponent(orderNo_textField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
					.addGap(18)
					.addComponent(btnCheckIn)
					.addContainerGap(191, Short.MAX_VALUE))
		);
		setLayout(groupLayout);

	}

	public JTextField getOrderNo_textField() {
		return orderNo_textField;
	}

	public void setOrderNo_textField(JTextField orderNo_textField) {
		this.orderNo_textField = orderNo_textField;
	}

}
